package org.sabayframework.channel.jdbc;

import java.sql.Connection;
import java.util.concurrent.Future;

/**
 * Base class for asynchronous JDBC queries. 
 * Implementor should call connection methods in 'run' method.  
 * */
public abstract class JDBCQuery implements Runnable {
	private Future<?> future;
	private Connection connection;

	public Future<?> getFuture() {
		return future;
	}

	public void setFuture(Future<?> future) {
		this.future = future;
	}

	public Connection getConnection() {
		return connection;
	}

	public void setConnection(Connection connection) {
		this.connection = connection;
	}

}
